
public class Student extends Person {

	Student(String name, String address) {
		super(name, address);
	}

	private String program;
	private int year;
	private double fee;

	public Student(String name, String address, String program, int year, double fee) {
		super();
		this.setName(name);
		this.setAddress(address);
		this.program = program;
		this.year = year;
		this.fee = fee;
	}

	public String getProgram() {
		return program;
	}

	public void setProgram(String program) {
		this.program = program;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public double getFee() {
		return fee;
	}

	public void setFee(double fee) {
		this.fee = fee;
	}

	@Override
	public String toString() {
		return "Student[Person[name=" + super.getName() + ",address=" + super.getAddress() + " [program=" + program
				+ ", year=" + year + ", fee=" + fee + "]";
	}
}
